package com.kylin.dal.entity.user;

import com.kylin.shared.common.entity.BaseEntry;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 用户关系变更历史记录项
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年11月07日 21:01
 */
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_user_token", catalog = "db_kylin_artwork")
public final class UserTokenEntry extends BaseEntry implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column private Long id;

    @Column private String token;

    @Column(name = "address_ip")
    private String addressIp;

    @Column(name = "login_at")
    private Long loginAt;

    @Column(name = "expired_at")
    private Long expiredAt;
}
